#include "string.h"

typedef unsigned char uint8_t;

char * input(char * str){

	printf("%s", str);
	
	size_t str_size = 255;
	char *inp_str;
	inp_str = (char *)malloc(sizeof(char) * str_size);

	fgets(inp_str, str_size, stdin);

	char *out_str;
	out_str = (char *)malloc(sizeof(char) * strlen(inp_str));

	for (int i = 0; i < strlen(inp_str); i++){
		if (inp_str[i] == '\n') out_str[i] = '\0';
		else out_str[i] = inp_str[i];
	}
	free(inp_str);
	return out_str;
}

int check_equ(uint8_t first[8], uint8_t second[8]){
	for (int i = 0; i < 8; i++){
		if(first[i] != second[i]) return 0;
	}
	return 1;
}